package com.alliky.home.mvp.model

import com.alliky.common.entity.BannerEntity
import com.alliky.common.entity.BaseResponse
import com.alliky.home.mvp.contract.HomeContract
import com.alliky.core.base.BaseModel
import com.alliky.core.net.RetrofitKt
import io.reactivex.Observable

/**
 * @Author: wxianing
 * @CreateDate: 2022/2/22 21:24
 * @Description: java类作用描述
 */
class HomeModel : BaseModel(), HomeContract.Model {
    override fun getBanner(type:Int): Observable<BaseResponse<List<BannerEntity>>> {
        return RetrofitKt.service.getBanner(type)
    }

}